package com.muyu.danmo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.muyu.danmo.mapper.DanmoTrainingTeacherTypeMapper;
import com.muyu.danmo.domain.DanmoTrainingTeacherType;
import com.muyu.danmo.service.IDanmoTrainingTeacherTypeService;

/**
 * 教师培训类型Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-26
 */
@Service
public class DanmoTrainingTeacherTypeServiceImpl implements IDanmoTrainingTeacherTypeService 
{
    @Autowired
    private DanmoTrainingTeacherTypeMapper danmoTrainingTeacherTypeMapper;

    /**
     * 查询教师培训类型
     * 
     * @param id 教师培训类型主键
     * @return 教师培训类型
     */
    @Override
    public DanmoTrainingTeacherType selectDanmoTrainingTeacherTypeById(Long id)
    {
        return danmoTrainingTeacherTypeMapper.selectDanmoTrainingTeacherTypeById(id);
    }

    /**
     * 查询教师培训类型列表
     * 
     * @param danmoTrainingTeacherType 教师培训类型
     * @return 教师培训类型
     */
    @Override
    public List<DanmoTrainingTeacherType> selectDanmoTrainingTeacherTypeList(DanmoTrainingTeacherType danmoTrainingTeacherType)
    {
        return danmoTrainingTeacherTypeMapper.selectDanmoTrainingTeacherTypeList(danmoTrainingTeacherType);
    }

    /**
     * 新增教师培训类型
     * 
     * @param danmoTrainingTeacherType 教师培训类型
     * @return 结果
     */
    @Override
    public int insertDanmoTrainingTeacherType(DanmoTrainingTeacherType danmoTrainingTeacherType)
    {
        return danmoTrainingTeacherTypeMapper.insertDanmoTrainingTeacherType(danmoTrainingTeacherType);
    }

    /**
     * 修改教师培训类型
     * 
     * @param danmoTrainingTeacherType 教师培训类型
     * @return 结果
     */
    @Override
    public int updateDanmoTrainingTeacherType(DanmoTrainingTeacherType danmoTrainingTeacherType)
    {
        return danmoTrainingTeacherTypeMapper.updateDanmoTrainingTeacherType(danmoTrainingTeacherType);
    }

    /**
     * 批量删除教师培训类型
     * 
     * @param ids 需要删除的教师培训类型主键
     * @return 结果
     */
    @Override
    public int deleteDanmoTrainingTeacherTypeByIds(Long[] ids)
    {
        return danmoTrainingTeacherTypeMapper.deleteDanmoTrainingTeacherTypeByIds(ids);
    }

    /**
     * 删除教师培训类型信息
     * 
     * @param id 教师培训类型主键
     * @return 结果
     */
    @Override
    public int deleteDanmoTrainingTeacherTypeById(Long id)
    {
        return danmoTrainingTeacherTypeMapper.deleteDanmoTrainingTeacherTypeById(id);
    }
}
